//
//  UIViewController+CustomHUD.h
//  ParkButler-Owner
//
//  Created by qq on 2019/5/8.
//  Copyright © 2019年 yhy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD+Add.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (CustomHUD)

@property(strong,nonatomic)MBProgressHUD *HUD;

- (void)showHudWithCustomView:(UIView*)customView duration:(CGFloat)duration block:(dispatch_block_t _Nullable)block;

/// 显示成功页面
- (void)showSuccessCustomView:(NSString*)text detail:(NSString*)detail duration:(CGFloat)duration block:(dispatch_block_t _Nullable)block;
/// 显示失败页面
- (void)showFailCustomView:(NSString*)text detail:(NSString*)detail duration:(CGFloat)duration block:(dispatch_block_t _Nullable)block;
@end

NS_ASSUME_NONNULL_END
